package com.example.mybatisplus.controller;

import com.example.mybatisplus.model.Grade;
import com.example.mybatisplus.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/test")
@RestController
public class GradeController {
    @Autowired
    public GradeService service;
    @RequestMapping("/grade")
    public Grade selectById(Integer id){
        return service.selectById(id);
    }
}
